﻿<HTML>
<HEAD>
<TITLE>客户关系管理系统</TITLE>
<meta name="renderer" content="ie-comp">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=8">

<style type="text/css">
body {
	background-color: #0066CC;
}
body,td,th ,a  {
	color: #FFFFFF;
}
</style>
<script type="text/javascript" src="dtree.js"></script>

    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script src="/js/vue.js"></script>
    <link rel="StyleSheet" href="/html/dtree.css" type="text/css" />
</HEAD>
<body><br/>
<script type="text/javascript">
		d = new dTree('d');
        d.add(0,-1,'客户关系管理系统');
        var usr=JSON.parse(sessionStorage.getItem("sysUsers"));
        var roleId=usr.usr_role_id;
        $(function(){
            $.getJSON("/getMenuByRoleId/"+roleId,function(json){
                $.each(json.data.mights,function(i){
                    if(this.right_parent_code==0){
                        d.add(this.right_code,this.right_parent_code,this.right_text);
                    }else{
                        d.add(this.right_code,this.right_parent_code,this.right_text,this.right_url,this.right_text,'mainFrame');
                    }
                });
                document.getElementById("div").innerHTML=d;
            });
        });
	</script>
<div id="div"></div>
</BODY>
</NOSCRIPT>

</HTML>
